package me.zhengjie.modules.finace_taxation.service.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import me.zhengjie.base.CommonMapper;
import me.zhengjie.modules.finace_taxation.domain.FtIndustryDetails;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
* @author 杨荣森
* @date 2021-06-23
*/
@Repository
public interface FtIndustryDetailsMapper extends CommonMapper<FtIndustryDetails> {

    IPage<FtIndustryDetails> getIndustryByPage(Page<FtIndustryDetails> page, Map<String, Object> map);

    int addBrowseNumber(String id);

    @Select("select id from ft_industry_details where title = #{title}")
    FtIndustryDetails getIndustryDetailByTitle(String title);

}
